Skip to content

Standardize text files on UTF-8 without BOM - #1723

Merged
angularsen merged 1 commit into
masterfrom
agent/standardize-utf8-without-bom
Aug 1, 2026
Merged

Standardize text files on UTF-8 without BOM#1723
angularsen merged 1 commit into
masterfrom
agent/standardize-utf8-without-bom

Conversation

@angularsen

Copy link
Copy Markdown
Owner

Summary

  • Set the repository-wide EditorConfig charset to UTF-8 without BOM.
  • Remove the existing UTF-8 BOM from all 536 tracked files that contained one.
  • Keep file contents and line endings otherwise unchanged.

Motivation

UTF-8 has no byte-order ambiguity, so its BOM only serves as an encoding signature. Unicode permits but does not require it, and W3C recommends avoiding it unless a compatibility requirement exists because it can interfere with tools or formats that expect content at byte zero.

This also aligns authored files with the explicit UTF-8-without-BOM behavior recently adopted by CodeGen and prevents future encoding-only review noise.

References:

Impact

This is an encoding-only normalization. No source, project, resource, documentation, or unit-definition content changes.

Validation

  • Verified all 537 changed-file diffs: 536 are BOM-only removals and one is the EditorConfig policy change.
  • Scanned all tracked files and found zero remaining UTF-8 BOMs.
  • generate-code.bat
  • dotnet restore UnitsNet.slnx
  • dotnet build UnitsNet.slnx --no-restore — succeeded with 18 existing obsolete-API warnings and 0 errors.
  • git diff --check

@angularsen
angularsen marked this pull request as ready for review August 1, 2026 23:03
@angularsen
angularsen merged commit c8aa7c1 into master Aug 1, 2026
5 checks passed
@angularsen
angularsen deleted the agent/standardize-utf8-without-bom branch August 1, 2026 23:04
@codecov

codecov Bot commented Aug 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98%. Comparing base (46e730b) to head (9af9528).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@          Coverage Diff           @@
##           master   #1723   +/-   ##
======================================
  Coverage      98%     98%           
======================================
  Files         514     514           
  Lines       24141   24141           
======================================
  Hits        23748   23748           
  Misses        393     393           
Flag Coverage Δ
net48 97% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant